import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';

@Component({
  selector: 'app-submit-success',
  templateUrl: './submit-success.component.html',
  styleUrls: ['./submit-success.component.styl']
})
export class SubmitSuccessComponent implements OnInit {
  constructor(private router: Router) {}

  ngOnInit() {
    this.returnHome();
  }

  returnHome() {
    setTimeout(() => {
      this.router.navigate(['/home']);
    }, 2000);
  }
}
